package org.sparkle.html.impl.js;

import java.io.Serializable;

public class State implements Serializable{

	private String name;
	private String value;

	public State(){
		this(null, null);
	}
	
	public State(String name) {
		this(name,null);
	}
	
	public State(String name, String value) {		
		this.name = name;
		this.value = value;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getValue() {
		value=value.replaceAll("'", "\'");
		return value;
	}

}
